package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class SqlDataAccessIndication implements AlterRoutineCharacteristic, MethodCharacteristic, RoutineCharacteristic {

    private int beginIndex;
    private int endIndex;
    private boolean noSql;
    private boolean containsSql;
    private boolean readsSqlData;
    private boolean modifiesSqlData;

    public SqlDataAccessIndication(int beginIndex,
                                   int endIndex,
                                   boolean noSql,
                                   boolean containsSql,
                                   boolean readsSqlData,
                                   boolean modifiesSqlData) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.noSql = noSql;
        this.containsSql = containsSql;
        this.readsSqlData = readsSqlData;
        this.modifiesSqlData = modifiesSqlData;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isNoSql() {
        return noSql;
    }

    public boolean isContainsSql() {
        return containsSql;
    }

    public boolean isReadsSqlData() {
        return readsSqlData;
    }

    public boolean isModifiesSqlData() {
        return modifiesSqlData;
    }

}
